home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 5
/
Amiga Tools 5.iso
/
tools
/
developer-tools
/
guis
/
gadutil
/
docs
/
autodocs
/
34.gu_layoutmenuitemsa
< prev
next >
Wrap
Text File
|
1996-07-16
|
1KB
|
34 lines
gadutil.library/GU_LayoutMenuItemsA gadutil.library/GU_LayoutMenuItemsA
NAME
GU_LayoutMenuItemsA -- Position all the menu items.
SYNOPSIS
success = GU_LayoutMenuItemsA(menuitem, vi, tags)
D0 A0 A1 A2
BOOL GU_LayoutMenuItemsA(struct MenuItem *, APTR, struct TagItem *);
FUNCTION
Lays out all the menu items and sub-items according to
the supplied visual information and tag parameters. You would use this
if you used CreateMenusA() to make a single menu-pane (with sub-items,
if any), instead of a whole menu strip.
This routine attempts to columnize and/or shift the MenuItems in
the event that a menu would be too tall or too wide.
INPUTS
menuitem - Pointer to the first MenuItem in a linked list of items.
vi - Pointer returned by GU_GetVisualInfoA().
tags - Pointer to an array of tags providing optional extra
information.
TAGS
See gadtools/LayoutMenuItemsA() for tags.
RESULT
success - TRUE if successfull, FALSE otherwise.
SEE ALSO
GU_CreateMenusA(), GU_GetVisualInfoA(), gadtools/LayoutMenuItemsA()